package com.cskaoyan.vo.market;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: mall
 * @description:
 * @author: Mr.Mengmeng
 * @create: 2021-04-11 14:49
 **/
@Data
public class BrandCreateVo {
    private Integer id;

    private String name;

    private String desc;

    private String picUrl;
    private BigDecimal floorPrice;
    @DateTimeFormat
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;
    @DateTimeFormat
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public BrandCreateVo(Integer id, String name, String desc, String picUrl, BigDecimal floorPrice, Date addTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.picUrl = picUrl;
        this.floorPrice = floorPrice;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public BrandCreateVo() {
    }
}
